import request from '../utils/request'

// 获取商品列表
export const getGoodList = (params) => {
    return request.get(`/gen/goods?${params}`
        // {params:{name:params.name}}
    )
}
// 新增商品
export const addGoodList = (params) => {
    return request.post(`/gen/goods?${params}`
        // { data: `name=${data.name}&gname=${data.gname}&service_type_id=${data.service_type_id}&title=${data.title}&price=${data.price}&counts=${data.counts}&status=${data.status}` }
    )
}
// 商品类型
export const getGoodTypeList = (params) => {
    return request.get(`/gen/goodstype?${params}`
        // {params:{name:params.name}}
    )
}
// 服务类型
export const getServeiceTypeList = (params) => {
    return request.get(`/gen/servicetype?${params}`
        // {params:{name:params.name}}
    )
}